package com.clearliang.nativeapp.view;

import io.flutter.plugin.common.BasicMessageChannel;
import io.flutter.plugin.common.EventChannel;

/**
 * Created by ClearLiang on 2019/6/4
 * Description：
 * Function :
 */
public interface GlobalParam {

    // Activity 隐式启动action的前缀（需再加上具体Activity名）
    String ActivityAction = "com.liang.activity.";

    // Flutter Activity 默认展示的路由
    String RouteStart = "route1";

    /**
     * BasicPlugin
     * 通道名称、函数名、参数名
     */
    String BasicChannel = "com.liang.flutter.plugin/basic";
    void sendMessage(String string);
    void onMessage(Object o, BasicMessageChannel.Reply reply);

    /**
     * MethodChannel
     * 通道名称、函数名、参数名
     */
    String MethodChannel = "com.liang.flutter.plugin/method";
    String ACTION_LOG   = "showLog";
    String ACTION_TOAST = "showToast";
    String ACTION_START = "startActivity";
    String LOG_ARGUMENT = "data";

    /**
     * EventPlugin
     * 通道名称、函数名、参数名
     */
    String EventChannel = "com.liang.flutter.plugin/event";
    void onListen(Object o, final EventChannel.EventSink eventSink);
    void onCancel(Object o);

}
